
import java.util.function.Consumer;

public class NestedLambdaExample {
    public static void main(String[] args) {
        Consumer<String> outerLambda = s -> {
        	
            System.out.println("Outer lambda: " + s);
            Consumer<Integer> innerLambda = i -> {
                System.out.println("Inner lambda: " + i);
            };
            innerLambda.accept(42);
        };
        outerLambda.accept("Hello");
    }
}